/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.poll.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hopes.bizz.poll.common.constant.enums.PollSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.SysDictEnum;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 监控站点类型
 *
 * @author daijie
 * @date 2023-09-18 17:33:03
 */
@Data
@TableName("poll_monitor_type")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "监控站点类型")
public class PollMonitorTypeEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;

 
	/**
	* id
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

	/**
	* 站点大类
	*/
    @Schema(description="站点大类")
    private Integer monitorTypeMain;

	/**
	* 类型编码
	*/
    @Schema(description="类型编码")
    private Integer monitorType;

	/**
	* 站点类型名称
	*/
    @Schema(description="站点类型名称")
    private String name;

	/**
	* 是否有折算值
	*/
    @Schema(description="是否有折算值")
    private Boolean zsFlag;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remarks;

	public String getZsFlagStr() {
		return DictResolver.getItemLabelByValue(SysDictEnum.yes_no_type, this.zsFlag);
	}

	public String getMonitorTypeMainStr() {
		return DictResolver.getItemLabelByValue(PollSysDictEnum.poll_monitor_type, this.monitorTypeMain);
	}
}